import config from "@/config"
import http from "@/utils/request"

export default {
	list: {
		url: `${config.API_URL}/merchant/finance/index`,
		name: "结算明细",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	census: {
		url: `${config.API_URL}/merchant/finance/census`,
		name: "结算统计",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	withdrawLog: {
		url: `${config.API_URL}/merchant/finance/withdrawLog`,
		name: "提现记录",
		get: async function(data={}){
			return await http.get(this.url, data);
		}
	},
	withdraw: {
		url: `${config.API_URL}/merchant/finance/withdraw`,
		name: "提现",
		post: async function(data={}){
			return await http.post(this.url, data);
		}
	}
}
